package cn.practice._07springaop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCalculator {
    public static void main(String[] args) {
        // 获取bean对象
        ApplicationContext context = new AnnotationConfigApplicationContext(
                "cn.practice._07springaop"
        );

        CalculatorImpl calculator = context.getBean(CalculatorImpl.class);

        calculator.add(10,20);

    }
}
